<?php
@header("content-type:text/html;charset=utf-8");
$conn = mysql_connect("localhost:3306","root","root");
mysql_select_db("1904");
mysql_query("set character set utf8");
mysql_query("set names utf8");
$user_name=$_GET["user_name"];
$callback=$_GET["callback"];
$result=mysql_query("select * from userinfo where user_name='$user_name'");
$arr=array();
while($item=mysql_fetch_assoc($result)){
$arr[]=$item;
}
echo  "$callback(".json_encode($arr).")";
?>
